<? if ($this->invalid_time) { ?>
<span style="color: red;">Крайният час трябва да е след началния</span>
<br /><br />
<? } ?>

<? if ($this->invalid_date) { ?>
<span style="color: red;">Невалидна дата</span>
<br /><br />
<? } ?>

<?= $this->form ?>
<script type="text/javascript">
	$(document).ready(function() {

		$('#date_ticket').datepicker({dateFormat: 'yy-mm-dd'});
		
		$('#time_start').timePicker({
		startTime:new Date(0, 0, 0, 8, 0, 0),
		endTime:new Date(0, 0, 0, 23, 0, 0),
		separator:':',
		step: 60});
	
		$('#time_end').timePicker({
		startTime:new Date(0, 0, 0, 8, 0, 0),
		endTime:new Date(0, 0, 0, 23, 0, 0),
		separator:':',
		step: 60});

	});
</script>